/*
 * Copyright (c) 2006, 2023, webrx.cn All rights reserved.
 *
 */

package cn.webrx;

/**
 * <p>Project: jse2303 - For4
 * <p>Powered by webrx On 2023-07-11 15:30:38
 * <p>描述：<p>
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class For7 {
    public static void main(String[] args) {
        int sp = 20;
        for (int i = 1; i <= 30; i += 2) {
            sp--;
            for (int s = 0; s < sp; s++) {
                System.out.print(" ");
            }
            for (int j = 0; j < i; j++) {
                System.out.print("*");
            }
            System.out.println();
        }

        for (int i = 27; i >= 1; i -= 2) {
            sp++;
            for (int s = 0; s < sp; s++) {
                System.out.print(" ");
            }
            for (int j = 0; j < i; j++) {
                System.out.print("*");
            }
            System.out.println();
        }
    }
}
